import request from '@/utils/request'

// 查询房间采光管理列表
export function listLighting(query) {
  return request({
    url: '/system/lighting/list',
    method: 'get',
    params: query
  })
}

// 查询房间采光管理详细
export function getLighting(lightingId) {
  return request({
    url: '/system/lighting/' + lightingId,
    method: 'get'
  })
}

// 新增房间采光管理
export function addLighting(data) {
  return request({
    url: '/system/lighting',
    method: 'post',
    data: data
  })
}

// 修改房间采光管理
export function updateLighting(data) {
  return request({
    url: '/system/lighting',
    method: 'put',
    data: data
  })
}

// 删除房间采光管理
export function delLighting(lightingId) {
  return request({
    url: '/system/lighting/' + lightingId,
    method: 'delete'
  })
}
